import { _decorator, Component, instantiate, Prefab, UITransform, Vec2, Vec3 } from 'cc';
import { GameManager } from '../Manager/GameManager';
// import { MainModel_Ins } from '../../Game/Main/MainModel';
import { GameMode } from '../../Data/Types';
const { ccclass, property } = _decorator;

@ccclass('Destory2Effect')
export class Destory2Effect extends Component {
  @property(Prefab)
  effect: Prefab;
  protected onDisable(): void {
    let pos = new Vec3();
    // switch (MainModel_Ins.curMode) {
    //   case GameMode.NORMAL:
    //     pos = GameManager.Singleton.getUIWorldPosition(MainModel_Ins.curPanel.levelNode.monsterNode);
    //     pos.y += 20;
    //     break;
    //   default:
    //     pos = new Vec3(193, 282, 0);
    //     break;
    // }
    // const item = instantiate(this.effect);
    // MainModel_Ins.curPanel.curModeBase.node.addChild(item);
    // item.setPosition(pos);
  }
}
